package io.xxx.mario.robot.api;

import io.xxx.mario.common.Validator;
import lombok.Data;

@Data
public class ApplyRobotRequest implements Validator {

    private Long storeId;

    private Integer provinceId;

    private Integer cityId;

    @Override
    public void validate() {
        if (storeId == null) {
            throw new IllegalArgumentException("门店ID不存在");
        }
        if (provinceId == null) {
            throw new IllegalArgumentException("省份编码不存在");
        }
        if (cityId == null) {
            throw new IllegalArgumentException("城市编码不存在");
        }
    }
}
